package com.test.dao;

import com.test.pojo.Teacher;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TeacherMapper {
    @Select("select * from teacher where id=#{id}")
    Teacher getTeacherById(@Param("id") int id);
    List<Teacher> getTeacher();
    // 获取指定老师下的所有学生及老师的信息
    Teacher getTeacher(@Param("tid") int tid);
}
